<style>
    #main_picture img{
        width: 100%;
        height: auto;
    }
    
    #view-content h3{
        width: 100%;
        background-color: #9999ff;
        padding: 5px;
        color: white;
    }
    #view-content br{
        margin-bottom: 10px;
    }
    #view-content table{
        margin-left: 30px;
    }
    #view-content table td{
        width: 420px;
        padding: 1px 3px;
    }
    #view-content #information, #view-content #about{
        margin-left: 30px;
    }
    #view-content #row{
        display: table-row;
    }
    #view-content span{
        display: table-cell;
        padding: 3px 4px;
    }
    #view-content span#labels{
        width: 85px;
    }
    #view-content span#content{
        width: auto;
    }
    #view-content span#description{
        width: 400px;
    }
    
</style>
<div id="view-content">
    <?php if(isset($this->details)): ?>
    <div id="main_picture">
        <img src="<?=$this->baseUrl()?>/images/shops/<?=$this->image?>" alt="<?= $this->details["name"] ?>" />
    </div>
    <h3><?= strtoupper($this->details["name"]) ?></h3>
    <div id="information">
        <div class="row"><span id="labels">Telepon</span><span>:</span><span id="content"><?= $this->details["phone"] ?></span></div>
        <div class="row"><span id="labels">Email</span><span>:</span><span id="content"><?= $this->details["email"] ?></span></div>
        <div class="row"><span id="labels">Website</span><span>:</span><span id="content"><a href="#" onclick="javascript: window.open('http://<?= $this->details["url"]; ?>?buyer_id=<?=$this->buyerId;?>');"><?= $this->details["url"] ?></a></span></div>
        <div class="row"><span id="labels">Alamat</span><span>:</span><span id="content"><?= $this->details["address"] ?></span></div>
        <div class="row"><span id="labels">Kota</span><span>:</span><span id="content"><?= $this->details["city"] ?></span></div>
        <div class="row"><span id="labels">Propinsi</span><span>:</span><span id="content"><?= $this->details["province"] ?></span></div>
        <div class="row"><span id="labels">Kode pos</span><span>:</span><span id="content"><?= $this->details["zip_code"] ?></span></div>
    </div>
    <br />
    <h3>Tentang Toko</h3>
    <div id="about">
        <div class="row"><span id="description"><?= $this->details["description"] ?></span></div>
        <br />
        <div class="row"><span id="labels">Menjual</span><span>:</span><span id="content"><?= $this->details["item_sold"] ?></span></div>
        <div class="row"><span id="labels">Rating</span><span>:</span><span id="content"><?= $this->details["rating"] ?></span></div>
        <div class="row"><span id="labels">Pengunjung</span><span>:</span><span id="content"><?= $this->details["hit"] ?></span></div><br />
    </div>
    <br />
    <h3>Testimoni</h3>
    <table>
        <?php foreach($this->testimonies as $testimony): ?>
        <tr>
            <td style="color:white; background-color:#0066CC;">[Pembeli] <?= $testimony["b_username"] ?></td>
        </tr>
        <tr>
            <td style="background-color: <?= $this->cycle(array("#ccccff", "#a2a2d0"))->next() ?>"><?= $testimony["testimony"] ?></td>
        </tr>
        <?php endforeach; ?>
    </table>
    <?php endif; ?>
</div>